﻿@using System.Web.Mvc.Ajax
@using System.Web.Mvc.Html
@using System.Web.Mvc;
@model WebUI.Models.OverViewModel
<div style="float: right">
    <img src="data:image/png;base64,@System.Convert.ToBase64String(Model.Chart)" alt="" /></div>
<div style="float: right">
</div>
<div style="float: left">
    @{
        if (Model.AccessedExtensions.Any())
        {
            var grid = new WebGrid(source: Model.AccessedExtensions, rowsPerPage: 11, canSort: false, ajaxUpdateContainerId: "grid");    
        @grid.GetHtml(htmlAttributes: new { id = "grid" }, tableStyle: "main_table", headerStyle: "columns_head", 
 columns: grid.Columns(

                  grid.Column("FileType", "File Type"),
                  grid.Column("Count", "Acess Count")))
        <p>@WebUI.Resources.TotalAuditsNum @Model.TotalCount</p>
    
        }

        else
        {
        <p>
            No data found</p> 
        }
    }
</div>
